package SwordForOffer.Problem15;

public class Problem15test {
	public static void main(String args[])
	{
		MyListNode head=new MyListNode();
		MyListNode second=new MyListNode();
		MyListNode third=new MyListNode();
		MyListNode forth=new MyListNode();
		head.nextNode=second;
		second.nextNode=third;
		third.nextNode=forth;
		head.data=1;
		second.data=2;
		third.data=3;
		forth.data=4;

//		FindKthToTail test = new FindKthToTail();
//		ListNode resultListNode=test.findKthToTail(head, 3);
//		System.out.println(resultListNode.data);
		MyFindKthToTail test = new MyFindKthToTail();
		MyListNode resultListNode=test.findKthToTail(head, 1);
		System.out.println(resultListNode.data);


	}

}
